<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改密码</title>

</head>
<lui:context/>
<u:View basePath="/res-system/index/" userJS="updatePwd" delayLoadJs="false">
<body>
	<lui:dialogBody>
		<form class="m-cust" id='updatePwdFrm'>
			<lui:ajax url="${ctx }/updatePwd" id="updatePwdAjax" formQuery="#updatePwdFrm" formSubmit="true" onSuccess="UpdatePwdPage.onUpdatePwdSucc" 
		        contentType="application/x-www-form-urlencoded" type="post"/>
			<div class="form-group m-narrow row">
                <div class="col-sm-4 col-md-4 col-xs-4">
                    <label class="m-label required m-float-right" for="userPwd">密码：</label>
                </div> 
                <div class="col-sm-8 col-md-8  col-xs-8">
                    <input name="userPwd" id="userPwd" class="form-control m-input" maxlength="30" data-not-empty='true' 
                        data-empty-text='密码不能为空' data-0-regexp="^[0-9A-Za-z]{5,30}$" autofocus="autofocus" type="password"
                        data-0-error-text="不合法的密码" data-prompt="dialog" data-validate='true'>
                </div>
			</div>
			<div class="form-group m-narrow row">
                <div class="col-sm-4 col-md-4  col-xs-4">
                    <label class="m-label required m-float-right" for="confirmUserPwd">确认密码：</label>
                </div> 
                <div class="col-sm-8 col-md-8 col-xs-8" >
                    <input id="confirmUserPwd" class="form-control m-input" maxlength="30" data-not-empty='true' 
                        data-empty-text='密码不能为空' data-0-regexp="^[0-9A-Za-z]{5,30}$" type="password"
                        data-0-error-text="不合法的密码" data-prompt="dialog" data-validate='true'>
                </div>
			</div>
		</form>
	</lui:dialogBody>
	<lui:dialogFooter>
       <button class="btn btn-primary m-btn" type="button" onclick="UpdatePwdPage.updatePwd()">提交</button>
       <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
    </lui:dialogFooter>
</body>
</u:View>
</html>